<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <?php echo $this->partial('_menu.phtml');?>
            <!--/.well -->
        </div>
        <div class="span9">
            <div class="wrap">
                <div id="main-content">
                    <?php
                    if($this->mail['p_mailing']) $action = $this->baseUrl() .'/admin/mail/update-mail';
                    else $action = $this->baseUrl() .'/admin/mail/save-mail';
                    ?>
                    <form class="form-horizontal" name="frm" action="<?php echo $action?>" method="post">
                        <h3>Edition</h3>
                        <div class="control-group">
                        	<label class="control-label" for="titre">Sujet du mailing :</label>
                        	<div class="controls">
                        		<input type="text" name="titre" id="titre" value="<?php echo stripslashes($this->mail['titre']) ?>" placeholder="Sujet du mailing" required />
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label">Contenu :</label>
                        	<div class="controls">
                        		<textarea id="contenu" name="contenu" cols="50" rows="10" name=""><?php echo stripslashes($this->mail['contenu']); ?></textarea>
                        		<script type="text/javascript">
                                CKEDITOR.replace( 'contenu',
                                {})
                                </script>
                        	</div>
                        </div>
                         <div class="control-group">
                            <label class="control-label" for="emailtest">Email de test :</label>
                            <div class="controls">
                        		<input type="text" name="emailtest" id="emailtest" value="<?php echo $this->mail['emailtest'] ?>" placeholder="Email de test" />
                        	</div>
                        </div>
                        <div align="center">
                        	<input class="btn btn-primary" type="submit" value="Sauver" />
                        	<input type="hidden" name="p_mailing" value="<?php echo $this->mail['p_mailing'] ?>" />
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>